package com.frogs.ucenter.dao.ibatis;

import java.util.List;
import java.util.Map;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.ucenter.dao.TotalFlowCompleteInfoDao;
import com.frogs.ucenter.entity.TotalFlowCompleteInfo;
import com.ibatis.sqlmap.client.SqlMapClient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

@Repository("totalFlowCompleteInfoDao")
public class TotalFlowCompleteInfoDaoImpl extends BaseDaoIbatis<TotalFlowCompleteInfo> implements TotalFlowCompleteInfoDao {

    public TotalFlowCompleteInfoDaoImpl() {
        super();
        setNameSpace( "total_flow_complete_info" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }
    
	@Override
	public List<Map<String, Object>> selectResultByMap(Map<String, Object> params)
			throws Exception {
		SqlMapClient sqlMapClient = getSqlMapClientTemplate().getSqlMapClient();
		return sqlMapClient.queryForList(getNameSpace() + ".selectResultByMap", params);
	}
}